package edu.sctu.xialei.june.day20150602one;

/**
 * Created by Administrator on 6/2/2015.
 */
public class MyThread2 implements Runnable{

    private final String string;

    public MyThread2(String string){

        this.string = string;
    }

    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println(string);
        }

    }
}
